package com.sfac.springBoot.module.account.service.impl;

import com.sfac.springBoot.module.account.dao.UserDao;
import com.sfac.springBoot.module.account.pojo.User;
import com.sfac.springBoot.module.account.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * personal demo
 **/

@Service
public class UserServiceImpl  implements UserService {
    @Autowired
    private UserDao userDao;


    @Transactional
    @Override
    public User selectUserByName(String name){
        return userDao.selectUserByName(name);
    }
}
